<?php
/**
 * --------------------------------------------------------------
 * index控制器
 * Author: zd <kfzphp@126.com>
 * Date: 2018-06-01
 * Project: kfzphp.com
 * --------------------------------------------------------------
 */

class IndexController extends HomeController
{
    /**
     * 初始化
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * 默认页
     */
    public function index()
    {
        $page = !empty($_GET['p']) ? $_GET['p'] : 0;
        $cache_id = $page;
        $compile_id = 'qq';
        // $this->clear('ALL');exit;

        $this->show('page', $page);
        $this->show('test', 'Hello World');
        $this->view($cache_id, $compile_id);
    }

}